<div class="panel panel-default panel-intro">
    <div class="panel-body">
        <table class="table table-striped table-bordered table-hover table-nowrap">
            <tr>
                <td>退货单号：</td>
                <td>{$row.code|htmlentities}</td>
                <td>订单号：</td>
                <td>{$row.ordercode|htmlentities}</td>

            </tr>
            <tr>
                <td>客户：</td>
                <td>{$row.business.nickname|htmlentities}</td>
                <td>联系人：</td>
                <td>{$row.contact|htmlentities}</td>
            </tr>
            <tr>
                <td>联系方式：</td>
                <td>{$row.phone|htmlentities}</td>
                <td>地址：</td>
                <td>{$row.province_text|htmlentities}-{$row.city_text|htmlentities}-{$row.district_text|htmlentities}
                    {$row.address|htmlentities}
                </td>
            </tr>
            <tr>
                <td>总价：</td>
                <td>{$row.amount|htmlentities}</td>
                <td>退货状态：</td>
                <td>{$row.status_text|htmlentities}</td>
            </tr>
            <tr>
                {if($row.expressid)}
                <td>物流公司：</td>
                <td>{$row.express_text|htmlentities}</td>
                {/if}
                {if($row.expresscode)}
                <td>物流单号：</td>
                <td>{$row.expresscode|htmlentities}</td>
                {/if}
            </tr>
            <tr>
                <td>创建时间：</td>
                <td>{$row.createtime|htmlentities}</td>
                <td>销售员：</td>
                <td>{$row.admin_text|htmlentities}</td>
            </tr>
            <tr>
                {if($row.reviewerid)}
                <td>审核员：</td>
                <td>{$row.reviewer_text|htmlentities}</td>
                {/if}
                {if($row.stromanid)}
                <td>入库员：</td>
                <td>{$row.stroman_text|htmlentities}</td>
                {/if}
            </tr>
            <tr>
                {if($row.remark)}
                <td>备注：</td>
                <td>{$row.remark|htmlentities}</td>
                {/if}
                {if($row.reason)}
                <td>作废理由：</td>
                <td>{$row.reason|htmlentities}</td>
                {/if}
            </tr>
            <tr>
                {if($row.thumbs)}
                <td>退货图集：</td>
                <td>
                    {foreach $row.thumbs_cdn as $val}
                    <a href="{$val}" target="_blank">
                        <img src="{$val}" style="width: 100px;" alt="">
                    </a>
                    {/foreach}
                </td>
                {/if}
            </tr>
        </table>
    </div>
    <div class="panel-body">
        <table class="table table-striped table-bordered table-hover table-nowrap">
            <tr>
                <th>商品名称</th>
                <th>商品单价</th>
                <th>商品数量</th>
                <th>商品总价</th>
            </tr>

            {foreach $backProductList as $item}
            <tr>
                <td>{$item.products.name}</td>
                <td>{$item.price}</td>
                <td>{$item.nums}</td>
                <td>{$item.total}</td>
            </tr>
            {/foreach}
        </table>
    </div>
</div>